a=eval(input("请输入通话时长："))
b=eval(input("请输入短信条数："))
c=eval(input("请输入数据流量："))
basic  = 58
tongxin = duanxin = liuliang = 0
if a > 250:
    tongxin =(a-250)*0.25
if b > 100:
    duanxin =(b-100)*0.1
if c > 50:
   liuliang = (c-50)*0.3
total = basic + tongxin +duanxin +liuliang 
print("通话时长：{}分钟，短信条数：{}，数据流量：{}元".format(a,b,c,total))
